package cn.tedu.charging.order.context;

import cn.tedu.charging.order.feign.CostClient;
import cn.tedu.charging.order.feign.DeviceClient;
import cn.tedu.charging.order.repository.FailBillRepository;
import cn.tedu.charging.order.repository.SuccessBillRepository;
import cn.tedu.charging.order.repository.ChargingProgressRepository;
import cn.tedu.charging.order.server.WebSocketServer;
import lombok.Data;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

//容器bean对象
@Component
@Slf4j
@Data
public class MqttContext {
    //通过这个bean对象 给consumer传递容器bean对象
    @Autowired
    private SuccessBillRepository successBillRepository;
    @Autowired
    private FailBillRepository failBillRepository;
    @Autowired
    private DeviceClient deviceClient;
    @Autowired
    private ChargingProgressRepository chargingProgressRepository;
    @Autowired
    private WebSocketServer webSocketServer;
    @Autowired
    private CostClient costClient;
}
